package com.h3c.web.support.console;

import javax.servlet.http.HttpServletRequest;

import com.h3c.web.common.constant.RoleConstant.RoleEnum;

public interface RoleSupport {
	/**
	 * @Desc: 根据角色id获取角色枚举值
	 * @param roleId
	 * @return
	 * @throws Exception
	 * @return: RoleEnum
	 */
	public RoleEnum getRole(String roleId) throws Exception;
	/**
	 * @Desc: 根据request获取角色枚举值
	 * @param request
	 * @return
	 * @throws Exception
	 * @return: RoleEnum
	 */
	public RoleEnum getRole(HttpServletRequest request) throws Exception;
}
